package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCouponDistribtion;
import com.ecoolex.hotel.saas.entity.PresaleCouponDistribtionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponDistribtionMapper {
    long countByExample(PresaleCouponDistribtionExample example);

    int deleteByExample(PresaleCouponDistribtionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PresaleCouponDistribtion record);

    int insertSelective(@Param("record") PresaleCouponDistribtion record, @Param("selective") PresaleCouponDistribtion.Column ... selective);

    PresaleCouponDistribtion selectOneByExample(PresaleCouponDistribtionExample example);

    List<PresaleCouponDistribtion> selectByExample(PresaleCouponDistribtionExample example);

    PresaleCouponDistribtion selectByPrimaryKey(Integer id);

    PresaleCouponDistribtion selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCouponDistribtion record, @Param("example") PresaleCouponDistribtionExample example, @Param("selective") PresaleCouponDistribtion.Column ... selective);

    int updateByExample(@Param("record") PresaleCouponDistribtion record, @Param("example") PresaleCouponDistribtionExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCouponDistribtion record, @Param("selective") PresaleCouponDistribtion.Column ... selective);

    int updateByPrimaryKey(PresaleCouponDistribtion record);

    int batchInsert(@Param("list") List<PresaleCouponDistribtion> list);

    int batchInsertSelective(@Param("list") List<PresaleCouponDistribtion> list, @Param("selective") PresaleCouponDistribtion.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponDistribtionExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}